package com.dingreading.cloud.web.service.impl;

import com.dingreading.cloud.web.entity.table.ReadstarPayOrderTableDef;
import com.mybatisflex.spring.service.impl.ServiceImpl;
import com.dingreading.cloud.web.entity.ReadstarPayOrder;
import com.dingreading.cloud.web.mapper.ReadstarPayOrderMapper;
import com.dingreading.cloud.web.service.ReadstarPayOrderService;
import org.springframework.stereotype.Service;

/**
 *  服务层实现。
 *
 * @author Administrator
 * @since 2025-04-02
 */
@Service
public class ReadstarPayOrderServiceImpl extends BaseServiceImpl<ReadstarPayOrderMapper, ReadstarPayOrder, ReadstarPayOrderTableDef> implements ReadstarPayOrderService {

    @Override
    protected ReadstarPayOrderTableDef getTable() {
        return ReadstarPayOrderTableDef.readstarPayOrder;
    }

    @Override
    public ReadstarPayOrder getByOrderUid(String orderUid) {
        return getMapper().selectOneByCondition(table.orderUid.eq(orderUid));
    }
}
